#pragma once

#define AUTO_LOCK(lock)		CAutoLock lock(lock)

class CLock
{
public:
	CLock(void);
	~CLock(void);
	void Lock();
	void UnLock();
private:
	CRITICAL_SECTION	m_sectioon;
};



class CAutoLock
{
public:
	CAutoLock(CLock& lock);
	~CAutoLock(void);
private:
	CLock*	m_lock;
};
